/**
 * Created by IntelliJ IDEA.
 * User: ReZzZ
 * Date: 07 Apr 11
 * Time: 12:12:09
 * To change this template use File | Settings | File Templates.
 */
public class Car {
    private int xCor = 0;
       private int yCor = 0;
       private char direction;

       public Car (int xCor, int yCor, char direction){
           this.xCor = xCor;
           this.yCor = yCor;
           this.direction = direction;
       }

           /** set the x coordinate of the cars*/
           public void setXcor(int xCord){
               xCor = xCord;
           }
           /** set the y coordinate of the cars*/
           public void setYcor (int yCord){
               yCor = yCord;
           }
           /** get the x coordinate of the cars*/
       public int getXcor(){
       return xCor;
       }
            /** get the x coordinate of the cars*/
       public int getyCor(){
       return yCor;
       }
            /** get the direction of the cars*/
       public char getDirection(){
       return direction;
       }
    
}
